<?php
// +----------------------------------------------------------------------
// | 车钉钉 [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://www.twothink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: YagamiZN
// +----------------------------------------------------------------------

namespace app\admin\controller;

/**
 * 前台首页控制器
 * 主要获取首页聚合数据
 */
class Index extends Base{
    /**
     * 前置操作方法列表
     * @var array $beforeActionList
     * @access protected
     */
    protected $beforeActionList = ['baseInfo'];
    /**
     * 构造方法，初始化站点信息
     */
    protected function _initialize(){
        parent::_initialize();
    }
    //模版信息初始化
    public function baseInfo(){
        $baseWebmsg=cache('baseWebMsg');
        $this->assign('baseWebMsg',$baseWebmsg);
    }
    
	//网站首页
    public function index(){
        return $this->fetch();
    }
    //网站首页
    public function home(){
        $ip=$this->request->ip();
        $this->assign('dip',$ip);
        return $this->fetch();
    }
}
